<HTML> 
<HEAD> 
	<TITLE>3rd Party ROBOTC Drivers</TITLE> 
<link href="tabs.css" rel="stylesheet" type="text/css"/> 
<link href="doxygen.css" rel="stylesheet" type="text/css"/> 
</HEAD> 
 
<BODY bgcolor="#ffffff" link="#000000" vlink="#000000"> 
<table width="100%" bgcolor="navy" cellspacing=0 cellpadding=1 border=0> 
<tr><td><table width="100%" bgcolor="#EEEEDD" cellspacing=0 cellpadding=3 border=0> 
<tr> 
    <td width="33%" align="left"> <img src="images/LOGO_NXT.gif" width=266 height=44 border="0" alt="Mindstorms"></td> 
    <td><b><font size="+3" color="navy">3rd Party ROBOTC Drivers</font></b></td> 
    <td align="right"> <img src="images/logo.png" width=44 height=44 border="0" alt="RobotC"></td>     
</tr> 
  <tr bgcolor="#cccc99" align="right"> 
          <td colspan=3> <font face="arial" size="-1"> [<a href=main.html>Home</a>] [<a target=_top href="https://sourceforge.net/projects/rdpartyrobotcdr/">Download</a>] [<a target=_top href="http://apps.sourceforge.net/mantisbt/rdpartyrobotcdr/my_view_page.php">Submit a bug/suggestion</a>]  [<a target=_top href="http://www.robotc.net/forums/">ROBOTC Forums</a>] [<a target=_top href="http://botbench.com">Blog</a>] [<a target=_top href="http://sourceforge.net/donate/index.php?group_id=257238">Support this project</a>]</font> </td> 
</tr> 
</table></td></tr> 
</table> 
<!-- Generated by Doxygen 1.7.2 -->
<div class="header">
  <div class="summary">
<a href="#define-members">Defines</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<h1>mindsensors-lightsensorarray.h File Reference</h1>  </div>
</div>
<div class="contents">

<p>Mindsensors LigthSensorArray.  
<a href="#_details">More...</a></p>
<code>#include &quot;<a class="el" href="common_8h_source.html">common.h</a>&quot;</code><br/>

<p><a href="mindsensors-lightsensorarray_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#gae89663deaddbf9546dbea7ef507b7596">MSLSA_I2C_ADDR</a>&#160;&#160;&#160;0x14</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#gae6edf1014992937d32f100c54d2efde8">MSLSA_CMD_REG</a>&#160;&#160;&#160;0x41</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#ga83235f6d385e2ccba03c2ec87b1b5f97">MSLSA_CALIBRATED</a>&#160;&#160;&#160;0x42</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#ga8e1d100f324fefa865dbdf602dc0569a">MSLSA_WHITE_LIMIT</a>&#160;&#160;&#160;0x4A</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#ga852ee6c7439f830957e9b9d00ad02db7">MSLSA_BLACK</a>&#160;&#160;&#160;LIMIT   	  0x52</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#ga4ae89e697102fda39ba5c5dc6e1cd04d">MSLSA_WHITE_CALIB_DATA</a>&#160;&#160;&#160;0x5A</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#ga568a03564d4b1fc7c709a9f6a4c655cf">MSLSA_BLACK_CALIB_DATA</a>&#160;&#160;&#160;0x62</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#gaeb334b8818af2627dd1400663d52b192">MSLSA_UNCALIBRATED</a>&#160;&#160;&#160;0x6A</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#ga39122440e3d8f04b98352ff4437623c7">MSLSA_CMD_FREQ_US</a>&#160;&#160;&#160;'A'</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#ga5d43d7634b0a23cb5c6d705001f17e4d">MSLSA_CMD_CALIB_BLACK</a>&#160;&#160;&#160;'B'</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#gaa293d37cfd093980cf4c9c0ecaff6ae2">MSLSA_CMD_POWERDOWN</a>&#160;&#160;&#160;'D'</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#gaac707184dab7c79b952e8c20ae649ad8">MSLSA_CMD_FREQ_EU</a>&#160;&#160;&#160;'E'</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#gaf84b904de69a57e13449cd88d70e7640">MSLSA_CMD_POWERUP</a>&#160;&#160;&#160;'P'</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#gaf13db40153f7aa1ebf0816153c76173f">MSLSA_CMD_FREQ_UNI</a>&#160;&#160;&#160;'U'</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#ga9dc597c7a0c15b1b92d83213602e2b85">MSLDA_CMD_CALIB_WHITE</a>&#160;&#160;&#160;'W'</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#ga25d6edcc3425de2ee9abe86186a43a98">MSLSAwakeUp</a>(X)&#160;&#160;&#160;_MSLSAsendCommand(X, MSLSA_CMD_POWERUP)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#ga74088d3b3aa6be1ca0e2ee5b1d6d0157">MSLSASleep</a>(X)&#160;&#160;&#160;_MSLSAsendCommand(X, MSLSA_CMD_POWERDOWN)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#ga7f53b8297f06d90b80945e5c1e4d7ccc">MSLSAcalWhite</a>(X)&#160;&#160;&#160;_MSLSAsendCommand(X, MSLDA_CMD_CALIB_WHITE)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#ga27106d483a908de1a126fee132a52566">MSLSAcalBlack</a>(X)&#160;&#160;&#160;_MSLSAsendCommand(X, MSLSA_CMD_CALIB_BLACK)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#ga00ff9edf1856da054967323bf56d0610">MSLSAsetEU</a>(X)&#160;&#160;&#160;_MSLSAsendCommand(X, MSLSA_CMD_FREQ_EU)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#ga7f235e66c11db9a4157af510ca67d0ad">MSLSAsetUS</a>(X)&#160;&#160;&#160;_MSLSAsendCommand(X, MSLSA_CMD_FREQ_US)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#ga6bd6d0e08d1209ff3ae55509c6813516">MSLSAsetUni</a>(X)&#160;&#160;&#160;_MSLSAsendCommand(X, MSLSA_CMD_FREQ_UNI)</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#ga23eeee592371dc2285d86e86e98dfb91">MSLSAreadSensors</a> (tSensors link, ubyte *values)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#ga18b78973f36c39c3d98200941c9bbe51">MSLSAreadRawSensors</a> (tSensors link, int *values)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#gaf61714035d97be3f89bcce8f8c96e1ab">_MSLSAsendCommand</a> (tSensors link, ubyte cmd)</td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__common.html#gaa172ef131853460e5b9f5c6db81d30f4">tByteArray</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#ga8867a116b6793a996bbc787d1c6003fd">MSLSA_I2CRequest</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__common.html#gaa172ef131853460e5b9f5c6db81d30f4">tByteArray</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__msll.html#ga109536bf6e085ae6e7980771e3054526">MSLSA_I2CReply</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Mindsensors LigthSensorArray. </p>
<p><a class="el" href="mindsensors-lightsensorarray_8h.html" title="Mindsensors LigthSensorArray.">mindsensors-lightsensorarray.h</a> provides an API for the Mindsensors LightSensorArray</p>
<p>Changelog:</p>
<ul>
<li>0.1 Initial release<br/>
</li>
</ul>
<p>License: You may use this code as you wish, provided you give credit where it's due.</p>
<p>THIS CODE WILL ONLY WORK WITH ROBOTC VERSION 3.59 AND HIGHER.</p>
<dl class="author"><dt><b>Author:</b></dt><dd>Xander Soldaat </dd></dl>
<dl class="date"><dt><b>Date:</b></dt><dd>29 September 2012 </dd></dl>
<dl class="version"><dt><b>Version:</b></dt><dd>0.1 </dd></dl>

<p>Definition in file <a class="el" href="mindsensors-lightsensorarray_8h_source.html">mindsensors-lightsensorarray.h</a>.</p>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Wed Mar 13 2013 19:56:43 for ROBOTC Drivers by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.2 </small></address>
</body>
</html>
